<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>DETAIL OF RESTAURANT</title>
<link rel="stylesheet" href="../../css/bootstrap/bootstrap.css"
	th:href="@{/css/bootstrap/bootstrap.css}" />
<style>
@font-face {
	font-family: 'Glyphicons Halflings';
	src: url('../fonts/glyphicons-halflings-regular.eot');
	src: url('../fonts/glyphicons-halflings-regular.eot?#iefix')
		format('embedded-opentype'),
		url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
		url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
		url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular')
		format('svg');
}
}
</style>
<script type="text/javascript">
	function backPage() {
		window.history.back();
	}
</script>
</head>
<body>
	<header></header>
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<div>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"><span class="glyphicon glyphicon-search"></span>Sign
							Up</a></li>
					<li><a href="#"><span class="glyphicon glyphicon-log-in"></span>Login</a></li>
				</ul>
			</div>
		</div>
	</nav>
	<section>
		<article class="container col-sm-10 col-sm-offset-1">
			<ol class="breadcrumb">
				<li><a href="#">Home</a></li>
				<li><a href="#">Restaurant</a></li>
				<li class="active">Detail</li>
			</ol>
			<div class="panel panel-success">
				<div class="panel-heading">DETAIL OF MANAGEMENT</div>
				<div class="panel-body">
					<div class="form-horizontal container col-sm-10 col-sm-offset-1">
						<div class="form-group">
							<strong class="col-sm-3">Restaurant Name:</strong>
							<div class="col-sm-9">
								<span th:text="${res.restaurantName}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Restaurant Title:</strong>
							<div class="col-sm-9">
								<span th:text="${res.restaurantTitle}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Restaurant Address:</strong>
							<div class="col-sm-9">
								<span th:text="${res.restaurantAddress}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Restaurant Image:</strong>
							<div class="col-sm-9">
								<span th:text="${res.restaurantImage}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Open Time:</strong>
							<div class="col-sm-9">
								<span th:text="${res.openTime}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Close Time</strong>
							<div class="col-sm-9">
								<span th:text="${res.closeTime}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Delivery Price:</strong>
							<div class="col-sm-9">
								<span th:text="${res.deliveryPrice}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Minimum Order:</strong>
							<div class="col-sm-9">
								<span th:text="${res.minOrder}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Payment Method:</strong>
							<div class="col-sm-9">
								<span th:text="${res.paymentMethod}"></span>
							</div>
						</div>
						<div class="form-group">
							<strong class="col-sm-3">Note:</strong>
							<div class="col-sm-9">
								<span th:text="${res.restaurantNote}"></span>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-3 col-sm-1">
								<button onclick="backPage()" 
									class="btn btn-primary glyphicon glyphicon-backward">Back</button>
							</div>
							<div class="col-sm-offset-1 col-sm-1">
								<a th:href="@{/restaurant/updateform(restaurantId=${res.restaurantId})}">
									<button class="btn btn-primary glyphicon glyphicon-edit">Edit</button>
								</a>
							</div>
							<div class="col-sm-offset-1 col-sm-1">
								<a th:href="@{/restaurant/delete(restaurantId=${res.restaurantId})}">
									<button class="btn btn-primary glyphicon glyphicon-trash">
										Delete</button>
								</a>
							</div>
							<div class="col-sm-offset-1 col-sm-2">
								<a th:href="@{/menufood/form(restaurantId=${res.restaurantId}, restaurantName=${res.restaurantName})}">
									<button class="btn btn-primary glyphicon glyphicon-new-window">Create
										Menu Food</button>
								</a>
							</div>
							<div class="col-md-offset-1 col-md-1">
								<a th:href="@{/menudrink/list(restaurantId=${res.restaurantId}, restaurantName=${res.restaurantName})}">
									<button class="btn btn-primary glyphicon glyphicon-new-window">Create
										Menu Drink</button>
								</a>
							</div>
						</div>
					</div>
				</div>
				<div class="panel-footer"></div>
			</div>
		</article>
	</section>
	<footer class="container col-sm-12">
		<ol class="breadcrumb text-center">
			<li class="active"><p>@copyright - University Of Information
					Technology - Spring + hibernate + css3 + html5</p></li>
		</ol>
	</footer>
</body>
</html>